package com.softtown.modules.dapai.service;


import com.github.pagehelper.PageInfo;
import com.softtown.common.service.BaseService;
import com.softtown.common.utils.Result;
import com.softtown.modules.dapai.dto.CompCustomerDTO;
import com.softtown.modules.dapai.dto.CustomerAddDTO;
import com.softtown.modules.dapai.entity.CompCustomerEntity;
import com.softtown.modules.dapai.vo.CompCustomerVO;
import com.softtown.modules.dapai.vo.CustomerContactsVO;

import java.util.List;


/**
 * @Author: Ding Ya Yong
 * @Description: 地区
 * @Date: 2021/12/24 21:18
 * @Param:
 * @return:
 **/
public interface CompCustomerService extends BaseService<CompCustomerEntity> {

    PageInfo<CompCustomerEntity> getCustomerPageList(CompCustomerDTO compCustomerDTO);

    CompCustomerVO getCustomerById(Long compId, Long id);

    void addCustomer(CustomerAddDTO customerAddDTO);

    void updateCustomer(CustomerAddDTO customerAddDTO);

    void deleteCustomer(Long compId, Long id);

   CustomerContactsVO getContactsByCustId(Long compId, Long id);

   List<CompCustomerEntity> getAllCustomerList(Long compId);
}
